/*
 * @Author: byron
 * @Date: 2022-02-23 09:22:01
 * @LastEditTime: 2022-02-23 09:36:11
 */
import {
    createRouter,
    createWebHashHistory
} from "vue-router";


const home = () => import("../views/module/home/index.vue")
const consult = () => import("../views/module/consult/index.vue")
const order = () => import("../views/module/order/index.vue")
const mine = () => import("../views/module/mine/index.vue")

const routes = [{
        path: "/",
        redirect: "/home"
    },
    {
        path: "/home",
        name: "home",
        component: home
    },
    {
        path: "/consult",
        name: "consult",
        component: consult
    },
    {
        path: "/order",
        name: "order",
        component: order
    },
    {
        path: "/mine",
        name: "mine",
        component: mine
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
})

export default router